package designPatterns.structureMode.adapter.classAdapter;

import designPatterns.structureMode.adapter.ConcreteTarget;
import designPatterns.structureMode.adapter.Target;

/**
 * Created by thinkpad on 2015/9/4.
 */
// 测试类
public class Client {
    public static void main(String[] args) {
        // 使用普通功能类
        Target concreteTarget = new ConcreteTarget();
        concreteTarget.request();

        // 使用特殊功能类，即适配类
        Target adapter = new Adapter();
        adapter.request();
    }
}
